package com.mbx;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

public class Mepage {
    @FindBy(xpath="//androidx.appcompat.app.ActionBar.Tab[@content-desc=\"动态\"]/android.widget.TextView")
    public WebElement dongtai;
    @FindBy(xpath="//androidx.appcompat.app.ActionBar.Tab[@content-desc=\"收藏\"]/android.widget.TextView")
    public WebElement shoucang;
    @FindBy(xpath="//androidx.appcompat.app.ActionBar.Tab[@content-desc=\"我的寻找\"]/android.widget.TextView")
    public WebElement wodexunzhao;
    @FindBy(id = "com.example.petwithlove:id/btn_data")
    public WebElement bianji;
    //编辑资料
    @FindBy(id = "com.example.petwithlove:id/edt_userName")
    public WebElement username;
    @FindBy(id = "com.example.petwithlove:id/edt_userPhone")
    public WebElement number;
    @FindBy(id = "com.example.petwithlove:id/edt_userAddress")
    public WebElement address;
    @FindBy(id = "com.example.petwithlove:id/edt_location")
    public WebElement locate;
    @FindBy(id = "com.example.petwithlove:id/btn_preservation")
    public WebElement baocun;
    @FindBy(id = "com.example.petwithlove:id/btn_return")
    public WebElement fanhui;
    @FindBy(id = "com.example.petwithlove:id/btn_changeUserHead")
    public WebElement touxiang;
    @FindBy(xpath = "/hierarchy/android.widget.FrameLayout/android.widget.FrameLayout/android.view.ViewGroup/android.widget.FrameLayout[1]/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.FrameLayout/androidx.recyclerview.widget.RecyclerView/android.widget.RelativeLayout[24]/android.widget.RelativeLayout")
    public WebElement pic;
    @FindBy(id = "com.example.petwithlove:id/btn_delete")
    public WebElement delete;
    @FindBy(id = "com.example.petwithlove:id/iv_thumb")
    public WebElement like;
    public Mepage(WebDriver driver){
        PageFactory.initElements(driver,this);
    }
}
